home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT LockWS.xpl < prev    next >
Text File  |  2002-01-04  |  1KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Security\Disabled Features"
  5. "NAME"="Lock Computer/Workstation"
  6. "VERSION"="1.13"
  7. "OSVERSION"="0101011"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Enable "Lock Computer" command in security screen"
  10. "DESCRIPTION 1"="Pressing CTRL+ALT+DEL will show the "Windows NT/2000/XP Security" screen, which normally includes the "Lock Computer" or "Lock Workstation" command."
  11. "DESCRIPTION 2"="If this option is deactivated, the user can no longer activate this command (the button appears grayed-out)."
  12. "AUTHOR"="Xteq Systems (CptSiskoX)"
  13. "CONTACTURL"="http://www.xteq.com"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16. "COMMENT 2"=" "
  17.  
  18.  
  19. sPath="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
  20. sV1="DisableLockWorkstation" 'DW
  21. Sub Plugin_Initialize 
  22.     i=RegReadValue(sPath & sV1)
  23.     if IsEmpty(i) or i=0 then
  24.        SetUIElement 1,true 
  25.     end if
  26. End Sub
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  b=GetUIElement(1)
  33.  if b=true then
  34.     i=RegReadValue(sPath & sV1)
  35.     if IsEmpty(i)=false then 
  36.        Call RegDeleteValue(sPath & sV1)
  37.     end if
  38.  else
  39.     Call RegWriteValue(sPAth & sV1,1,2)
  40.  end if
  41.  
  42. End Sub
  43.  
  44. Sub Plugin_Terminate 
  45. End Sub
  46.  
  47.  
  48.  
  49.